package cn.haohaowo.webservice;

import javax.jws.WebService;


@WebService(endpointInterface = "cn.haohaowo.webservice.HelloWorldService", serviceName = "helloWorldService")
public class HelloWorldServiceImpl implements HelloWorldService {

	public String sayHello(String name) {
		System.out.println("HelloWorldServiceImpl.sayHello(" + name +")");
		return "Hello, " + name;
	}

	public String sayHelloToUser(User user) {
		System.out.println("HelloWorldServiceImpl.sayHelloToUser(" + user + ")");
		return "Hello,( "+user.getId()+", "+user.getName()+" )";
	}

}
